# 不适用继承
class Animal:
    def eat(self):
        print("吃饭")
        pass

    def dink(self):
        print("喝水")
        pass

    def sleep(self):
        print("睡觉")
        pass


class Dog:
    def eat(self):
        print("吃饭")
        pass

    def dink(self):
        print("喝水")
        pass

    def sleep(self):
        print("睡觉")
        pass


cat = Animal()
cat.sleep()
dog = Dog()
dog.sleep()
